import request from '@/utils/request'

// 查询安全检查单列表
export function listLabsafetyForm(query) {
  return request({
    url: '/labsafety/labsafetyForm/list',
    method: 'get',
    params: query
  })
}

// 查询安全检查单详细
export function getLabsafetyForm(instanceId) {
  return request({
    url: '/labsafety/labsafetyForm/' + instanceId,
    method: 'get'
  })
}

// 新增安全检查单
export function addLabsafetyForm(data) {
  return request({
    url: '/labsafety/labsafetyForm',
    method: 'post',
    data: data
  })
}

export function submitLabsafetyForm(data) {
  return request({
    url: '/labsafety/labsafetyForm/submit',
    method: 'post',
    data: data
  })
}

// 修改安全检查单
export function updateLabsafetyForm(data) {
  return request({
    url: '/labsafety/labsafetyForm',
    method: 'put',
    data: data
  })
}

// 删除安全检查单
export function delLabsafetyForm(instanceId) {
  return request({
    url: '/labsafety/labsafetyForm/' + instanceId,
    method: 'delete'
  })
}

// 导出安全检查单
export function exportLabsafetyForm(query) {
  return request({
    url: '/labsafety/labsafetyForm/export',
    method: 'get',
    params: query
  })
}